using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Floor1 : MonoBehaviour
{
    private void OnCollisionEnter2D(Collision2D collision)
    {
        if(collision.gameObject.tag == "Player")
        {
            Invoke("DestoryThis", 1f);
        }
    }

    void DestoryThis()
    {
        Destroy(this.gameObject);
    }
}
